﻿/**
 * Create in 2012-4-4.
 */
package kit4j.common.task.event;

import kit4j.common.event.AbstractConcurrentEventFirer;

/**
 * 
 * @author MiniKnife
 *
 */
public class ConcurrentTaskProgressRateChangeEventFirer extends AbstractConcurrentEventFirer<TaskProgressRateChangeListener, TaskProgressRateChangeEvent> implements TaskProgressRateChangeEventFirer {

	/**
	 * @see kit4j.common.event.AbstractConcurrentEventFirer#fireEventToListener(java.lang.Object, java.lang.Object)
	 */
	@Override
	protected void fireEventToListener(TaskProgressRateChangeEvent evt, TaskProgressRateChangeListener listener) {
		listener.taskProgressRateChanged(evt);
	}

	/**
	 * @see kit4j.common.event.EventFirer#getListeners()
	 */
	@Override
	public TaskProgressRateChangeListener[] getListeners() {
		return listenerList.toArray(new TaskProgressRateChangeListener[0]);
	}
	
}
